<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="../templates/ui.xhtml">

	<ui:define name="content">
		<h1 class="title ui-widget-header ui-corner-all">Media</h1>
		<div class="entry">
         <p>Media component is a cross browser generic player to embed
		 multimedia content such as videos and audio to JSF pages. Depending on the user-agent media either renders an object or an embed tag. Suitable player is discovered using the source type or a player can be specified explicitly.
		Media component can also play binary media using the StreamedContent API.		
         </p>
     
			<h3>Flash</h3>
			<p:media value="http://www.youtube.com/v/KZnUr8lcqjo" width="425" height="344" player="flash"/>
			
			<h3>Real Media</h3>
			<p:media value="http://service.real.com/learnnav/testrams/realvideo10_56.ram"/>	
			
			<h3>Music</h3>
			<p:media value="http://www.tulumba.com/mp3/mogollar/yurudukdurmadan/track%2002.mp3" width="200" height="20" player="quicktime"/>
			
			<h3>Source</h3>
            <p:tabView>
                <p:tab title="media.xhtml">
                    <pre name="code" class="xml">
&lt;h3&gt;Flash&lt;/h3&gt;
&lt;p:media value="http://www.youtube.com/v/KZnUr8lcqjo" width="425" height="344" player="flash"/&gt;

&lt;h3&gt;Real Media&lt;/h3&gt;
&lt;p:media value="http://service.real.com/learnnav/testrams/realvideo10_56.ram"/&gt;

&lt;h3&gt;Music&lt;/h3&gt;
&lt;p:media value="http://www.tulumba.com/mp3/mogollar/yurudukdurmadan/track%2002.mp3" width="200" height="20" player="quicktime"/&gt;
				</pre>	
                </p:tab>
            </p:tabView>
					
      	</div>
 
</ui:define>
</ui:composition>
				